package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.io.Serializable;

/**
 * 影响关联表 实体类
 * 表名：ra_influence_linked
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "ra_influence_linked")
public class RaInfluenceLinked implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 影响主键
     */
    @Column(name = "influence_id")
    private Long influenceId;
    
    /**
     * 关联主键
     */
    @Column(name = "linked_id")
    private Long linkedId;
    
    /**
     * 关联名称
     */
    @Column(name = "linked_name", length = 64)
    private String linkedName;
    
    /**
     * 关联类型（1、偏离 2、物料 3、节点）
     * 默认值: 1
     */
    @Column(name = "linked_type")
    private Byte linkedType;
    
    @Override
    public String toString() {
        return "RaInfluenceLinked{" +
            "id=" + id +
            ", influenceId=" + influenceId +
            ", linkedId=" + linkedId +
            ", linkedName=" + linkedName +
            ", linkedType=" + linkedType +
        '}';
    }
} 